#include<iostream>
#include<functional>
#include<vector>
#include<memory>
#include"err.hpp"
#include"eselectserver.hpp"
using namespace std;
using namespace ESelect_sv;

static void Usage(string proc)
{
    cerr<<"Usage:\n\t"<<proc<<" port "<<"\n\n";
}

string resp(const string& s)
{
    return s;
}

int main(int argc,char* argv[])
{
    // if(argc!=2)
    // {
    //     Usage(argv[0]);
    //     exit(USAGE_ERR);
    // }

    unique_ptr<SelectServer> selsv(new SelectServer(resp));
    selsv->initServer();
    selsv->Start();
    
    return 0;
}